projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0c0670
)
testutils: Get rid of gdk_drawable_get_size() usage
author
Benjamin Otte
<otte@redhat.com>
Mon, 20 Sep 2010 14:44:06 +0000
(16:44 +0200)
committer
Benjamin Otte
<otte@redhat.com>
Sun, 26 Sep 2010 13:11:44 +0000
(15:11 +0200)
gtk/gtktestutils.c
patch
|
blob
|
history
diff --git
a/gtk/gtktestutils.c
b/gtk/gtktestutils.c
index cedb5e7c46fb17ba7996a5a7c143f1426a2b4204..c2306feccb8ca8697a4f7b5dce337016ccffb11a 100644
(file)
--- a/
gtk/gtktestutils.c
+++ b/
gtk/gtktestutils.c
@@
-201,9
+201,9
@@
gtk_test_spin_button_click (GtkSpinButton *spinner,
if (panel)
{
- gint width,
height,
pos;
-
gdk_drawable_get_size (panel, &width, &height
);
- pos = upwards ? 0 :
height
- 1;
+ gint width, pos;
+
width = gdk_window_get_width (panel
);
+ pos = upwards ? 0 :
gdk_window_get_height (panel)
- 1;
b1res = gdk_test_simulate_button (panel, width - 1, pos, button, 0, GDK_BUTTON_PRESS);
b2res = gdk_test_simulate_button (panel, width - 1, pos, button, 0, GDK_BUTTON_RELEASE);
}